package com.homedo.microservice.open.service.gateway.zuul.conf;

import com.google.common.collect.Maps;

import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;

public class ZuulDBConf {
    private static ZuulDBConf instance = new ZuulDBConf();

    private static final AtomicReference<Map<String, String>> confsRef = new AtomicReference<Map<String, String>>(Maps.newConcurrentMap());


    private ZuulDBConf() {
    }

    public static ZuulDBConf getInstance() {
        return instance;
    }

    public Map<String, String> getConfs() {
        return confsRef.get();
    }

}
